Api.EnableAutoRepair 方法

允许启用自动修复。若任何从站消失时(因替换伺服驱动器、缆线断开、电源中断或其他原因)或出现 EtherCAT 错误状态,将进行自动重启。对于未处于错误状态的从站将不会被影响,这些从站将继续正常运作。

命名空间IntervalZero.KINGSTAR.OpcUa.Api

组合: IntervalZero.KINGSTAR.OpcUa.Api (于 IntervalZero.KINGSTAR.OpcUa.Client.dll) 版本:4.4.0.0

语法

C#VB
public KsError EnableAutoRepair(
       bool Active
)
Public Function EnableAutoRepair(
       Active As Boolean
) As KsError

参数

Active

型别:bool

true:启用自动修复;false:停用自动修复。预设为 true

回传值

型别:KsError

方法的回传代码。

备注

可用的 EtherCAT 状态

ecatOffline

范例

C#
N/A

参见

Api 类别

IntervalZero.KINGSTAR.OpcUa.Api 命名空间